#include "mysqlquery.h"

MySqlQuery::MySqlQuery(QObject *parent):
    QSqlQueryModel (parent)
{

}

QVariant MySqlQuery::data(const QModelIndex &item, int role) const
{
    QVariant value=QSqlQueryModel::data(item,role);
    if(role==Qt::DisplayRole && item.column() == 6)
    {
        value= QString("%1").arg(value.toDouble(), 0, 'f', 2);
        return value;
    }

    return value;
}
